#ifndef __fastspi_raster_h__

#define __fastspi_raster_h__

#include <raster.h>

// Easy initialize leds for our configuration.  Just tell it how
// many leds you have and it does the rest, including setting the
// data rate which turns out to be critical.
void EasyInit(int leds) {
  FastSPI_LED.stop();
  FastSPI_LED.setLeds(leds);
  FastSPI_LED.setChipset(CFastSPI_LED::SPI_WS2801);
  FastSPI_LED.setDataRate(2);

  FastSPI_LED.init();
  FastSPI_LED.start();
  
  memset(FastSPI_LED.getRGBData(), 0, leds * sizeof(Color));
  FastSPI_LED.show();
}

#endif